package com.xcity.game.equip.template;

import com.xcity.game.equip.EquipBrand;
import com.xcity.game.equip.EquipPosition;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Excel;

/**
 * 装备基础模板
 * @author yang.li
 *
 */
@Excel(value = "equip.xlsx", sheet = 0)
public class EquipBaseTemplate extends Template {

	/** 装备名称 */
	protected String name;

	/** 装备图标 */
	protected String icon;

	/** 品牌(1：爱马仕，2：xxx) */
	protected EquipBrand brand;

	/** 装备部位(0=衣服，1=手包，2=手表，3=鞋子) */
	protected EquipPosition pos;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public EquipBrand getBrand() {
		return brand;
	}

	public void setBrand(EquipBrand brand) {
		this.brand = brand != null ? brand : EquipBrand.UNKNOWN;
	}

	public EquipPosition getPos() {
		return pos;
	}

	public void setPos(EquipPosition pos) {
		this.pos = pos;
	}


	@Override
	public void validate() throws TemplateException {}
}
